﻿#include <iostream>
#include <vector>
#include "public.h"

int main() {
    //// 查终端编号
//std::vector<int> queryTerminalNo = { 0x68, 0x0C, 0x00, 0x40, 0x03, 0x00, 0x03, 0x03, 0x00, 0xE8, 0x31, 0x16 };
//// 启动台区识别
//std::vector<int> startAreaIdentify = { 0x68, 0x0F, 0x00, 0x40, 0x04, 0x44, 0x80, 0x04, 0x02, 0xE8, 0x00, 0x00, 0x00, 0xF6, 0x16 };
//// 查询表档案的台区识别结果
//std::vector<int> queryTableFileAreaResult = { 0x68, 0x0F, 0x00, 0x40, 0x03, 0x0E, 0x0E, 0x03, 0x03, 0xE8, 0x00, 0x00, 0x04, 0x51, 0x16 };
//// 查询多余节点的台区识别结果
//std::vector<int> queryRedundantAreaResult = { 0x68, 0x0F, 0x00, 0x40, 0x03, 0x0E, 0x0F, 0x03, 0x03, 0xE8, 0x00, 0x00, 0x04, 0x52, 0x16 };
    std::vector<int> di = { 0x80, 0x04, 0x02, 0xE8 };
    int afn = 0x04;
    std::vector<int> content = { 0x00, 0x00, 0x00 };
    std::cout << convertToString(vectorToByteArray(constructMsgData(di, afn, content))).toStdString() << std::endl;;

    return 0;
}